﻿using Microsoft.Data.SqlClient;
using System.Linq.Expressions;


namespace JST.TPLMS.Contract.IBaseFiles
{
    public interface IBaseRepository<T> where T : class
    {
        IEnumerable<T> GetAll(Expression<Func<T, bool>>? filter = null, string? includeProperties = null);
        T Get(Expression<Func<T, bool>> filter, string? includeProperties = null);
        void Add(T entity);
        bool Any(Expression<Func<T, bool>> filter);
        void Remove(T entity);

    }
}
